const koa = require('koa')
const views = require('koa-views')
const koaBody = require('koa-body')
const static = require('koa-static')
let router = require('./router')
let app = new koa()
app.use(koaBody({
    multipart: true
}))
app.use(static(__dirname + "/static"));
app.use(views(__dirname + '/views'))
router(app)
app.listen(8878)